/**
 * dock.css
 *
 * Styles for the dock
 */
.dock {
    width: 30px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    background-repeat: repeat-y;
    background-position: 100% 0;
    z-index: 2002;
}

.dock .dockeditem .firstdockitem {
    margin-top: 1em;
}

.dock .dockeditem .dockedtitle {
    cursor: pointer;
    background-position: 90% 0;
    background-repeat: repeat-y;
    border-bottom: 1px solid #AAA;
    border-top: 1px solid #CCC;
}

.dock .dockeditem .dockedtitle.activeitem {
    background-position: 80% 0;
}

.dock .dockeditem .dockedtitle h2 {
    line-height: 100%;
    text-align: center;
    margin: 12px 0;
}

.dock .controls {
    position: absolute;
    bottom: 1em;
    text-align: center;
    width: 100%;
}

.dock .controls img {
    cursor: pointer;
}

.dock .bd.oversized_content {
    overflow-y: auto;
    overflow-x: visible;
    height: inherit;
}

.dock .bd.oversized_content .content {
    margin: 6px 6px 6px 0;
    padding-bottom: 6px;
}

.dock .yui-panel .hd {
    text-align: right;
    border-width: 0 0 1px 0;
    padding: 3px 5px;
}

.dock .yui-panel .hd .commands img {
    margin-right: 2px;
}

.yui-skin-sam .dock .yui-panel {
    border-color: #AAA;
}

.yui-skin-sam .dock .yui-panel .bd {
    background-color: [[setting:dock_back]];
    border-width: 0;
}

#dock,
.dock {
    color: [[setting:dock_fore]];
    background-color: [[setting:main_back]];
    border-right: 1px solid #AAA;
}

.dock .dockeditem {
    color: [[setting:dock_fore]];
    background-color: [[setting:dock_back]];
}

#dock .dockedtitle.activeitem {
    color: [[setting:dockactive_fore]];
    background-color: [[setting:dockactive_back]];
}

#dockeditempanel .dockeditempanel_content {
    border-color: [[setting:main_back]];
}

#dockeditempanel .dockeditempanel_hd {
    background: [[setting:dock_back]];
    padding: .5em;
}

#dockeditempanel .dockeditempanel_hd h2 {
    font-size: inherit;
    float: left;
}

body #dockeditempanel .dockeditempanel_content {
    border-color: #7D7D7D;
    box-shadow: 2px 2px 3px #CCC;
}

#dock .controls img {
    box-shadow: 1px 1px 2px #CCC;
}

/** YUI overrides **/
.yui-skin-sam .dock .yui-panel {
    border-width: 1px 2px 1px 1px;
    min-width: 150px;
}

/** Override the above if the dock is on the right **/
.dock.dock_right_vertical {
    left: auto;
    right: 0;
    border-width: 0 0 1px 5px;
}

.dock.dock_right_vertical .commands {
    text-align: right;
}

.yui-skin-sam .dock.dock_right_vertical .yui-panel {
    border-width: 1px 0 1px 5px;
}

/**
* CSS for shadows
*
*  TODO: 'divshadow' does not appear to be used anywhere, based on a grep of the Moodle dir.
*  A subsequent task should be created to determine whether these styles are still needed.
*/

.divshadow div {
    position: absolute;
    width: 3px;
    height: 3px;
}

.divshadow .shadow_top {
    top: -3px;
    right: 0;
    width: 100%;
}

.divshadow .shadow_bottom {
    bottom: -3px;
    right: 0;
    width: 100%;
}

.divshadow .shadow_left {
    top: 0;
    left: -3px;
    height: 100%;
}

.divshadow .shadow_right {
    bottom: 0;
    right: -3px;
    height: 100%;
}

.divshadow .shadow_top_right {
    top: -3px;
    right: -3px;
}

.divshadow .shadow_bottom_right {
    bottom: -3px;
    right: -3px;
}

.divshadow .shadow_top_left {
    top: -3px;
    left: -3px;
}

.divshadow .shadow_bottom_left {
    bottom: -3px;
    left: -3px;
}

.divshadow div {
    background-color: #333;
}
